<{include file="block/small-header.html"}>
<!--购物流程图开始-->
<div class="subwd">
	<div class="shop_liuch">
		<p class="liuch_intro"><span class="first">购物车</span><span>填写核对订单信息</span><span>成功提交订单</span><span>等待付款</span><span>等待发货</span><span class="last">订单已完成</span></p>
		<p class="sp_liuch <{if $order.pay_status==1}>shop4<{else}>shop3<{/if}>"></p>
	</div>
	<div class="area tips">
        <{if $order.order_status == 2}><p class="side_tit"><span class="ico_list order_apply"></span>订单状态： 交易成功</p><{/if}>
		<p> 订单号：<{$order.order_no}></p>
        <p> 订单状态：
            <{if $order.order_status < 0}>已取消
            <{elseif $order.order_status == 2}>完成
            <{elseif $order.order_status == 1}>已发货 <{if empty($order.pay_status) && ($MEMBER.uid == $order.uid)}>, <a href="<{link ctl='trade/order:payment' arg0=$order.order_no}>" class="btn_pay">立即付款&nbsp;&gt;</a><{/if}>
            <{elseif $order.pay_status==1}>已支付
            <{else}>
            <{if $MEMBER.uid == $order.uid}>
            未支付, <a href="<{link ctl='trade/order:payment' arg0=$order.order_no}>" class="btn btn_sub_sm">立即付款</a>
            <{elseif empty($order.status)}>
            等待买家付款，你可以先行发货 <a href="<{link ctl='ucenter/shop/order:index' arg0='unship'}>" class="btn_ship">去发货&nbsp;&gt;</a>
            <{else}>
            等待买家付款
            <{/if}>
            <{/if}>
         </p>
         <p>
         <{if $order.order_status == 2}>
            订单已经完成，感谢您在<{$CONFIG.site.title}>购物，欢迎您对本次交易及所购商品进行评价。
        <{elseif $order.order_status == 1}>
            <{if $MEMBER.uid == $order.uid}>
            卖家已经发货，收到货品后，核对商品正确后及时确认收货。
            <{else}>
            已经发货，等待买收货。
            <{/if}>
        <{/if}>
        </p>
	</div>
    <h2>订单详情</h2>
	<div class="area pding order_xiqing">
		<p> 收货人：<{$order.contact}></p>
		<p> 联系电话：<{$order.mobile}></p>
		<p> 联系地址：<{$order.addr}></p>
	</div>
	<div class="area mb20">
		<table class="shop_car" cellpadding="0" cellspacing="0">
			<tr class="title">
				<td class="first">商品信息</td><td>商品单价</td><td>数量</td><td>运费</td><td>小计</td><td>交易状态</td>
			</tr>
            <{foreach $order.products as $product}>
			<tr>
				<td class="first">
					<a class="lt" href="<{link ctl='mall/product:detail' arg0=$product.product_id arg1=1}>"><img src="<{$pager.img}>/<{$product.photo}>_small.jpg" /></a>
					<p class="rt">
                        <a href="<{link ctl='mall/product:detail' arg0=$product.product_id arg1=1}>" target="_blank"><{$product.product_name}></a><{if $product.spec_id}>【<{$product.spec_name|default:'--'}>】<{/if}><br />
                        商家&nbsp;:&nbsp;<a href="<{link ctl='mall/shop' arg0=$order.shop_id}>" target="_blank"><{$shop.name}></a>
                    </p>
				</td>
				<td><b class="fontcl2">￥<{$product.product_price}></b></td>
                <td><{$product.number}></td> 
				<td><b class="fontcl2"><{if $product.freight}>￥<{$product.freight}><{else}>包邮<{/if}></b></td>
				<td><b class="fontcl2">￥<{$product.amount}></b></td>
                <{if $product@first}>
				<td rowspan="<{$order.product_number}>" class="two">
                    <{if $order.order_status < 0}><p>已取消</p>
                    <{elseif $order.order_status == 2}><p>完成</p>
                    <{elseif $order.order_status == 1}><p>已发货</p>
                        <{if $MEMBER.uid == $order.uid}>
                        <{if empty($order.pay_status)}>, 
                            <a href="<{link ctl='trade/order:payment' arg0=$order.order_no}>" class="btn btn_sub_sm">立即付款</a>
                        <{else}>
                        
                        <{/if}>
                        <{/if}>
                    <{elseif $order.pay_status==1}><p>已支付</p>
                    <{else}>
                    <{if $MEMBER.uid == $order.uid}>
                    <p>未支付</p>, <a href="<{link ctl='trade/order:payment' arg0=$order.order_no}>" class="btn btn_sub_sm">立即付款</a>
                    <{elseif empty($order.status)}>
                    <p>等待买家付款，你可以先行发货</p> <a href="<{link ctl='ucenter/shop/order:index' arg0='unship'}>" class="btn_ship">去发货&nbsp;&gt;</a>
                    <{else}>
                    <p> 等待买家付款</p
                    ><{/if}>
                    <{/if}>
                <{/if}>
			</tr>
            <{/foreach}>
			<tr class="last">
				<td colspan="6"><p class="rt"><span>共计<b class="fontcl2"><{$order.product_count}></b>件商品</span><span>合计（含运费）：<b class="fontcl2">￥<{$order.amount}></b></span></p></td>
			</tr>
		</table>
	</div>
</div>
<!--购物流程图结束-->
<{include file="block/small-footer.html"}>